﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program09
{
    /// <summary>
    /// 定义员工类
    /// </summary>
    public class Person
    {
        //唯一标识
        public Guid ID { get; set; }

        public string EmployeeNo { get; set; }

        public string FirstName { get; set; }
        public string LastName { get; set; }

        public string FullName => $"{FirstName}{LastName}";

        public bool Sex { get; set; } = true;

        public DateTime BirthDay { get; set; } = DateTime.Today;

        public string Phone { get; set; }

        public Person()
        {
            //初始化对象时生成新的唯一标识
            ID = Guid.NewGuid();
        }
    }
}